package com.gopay.common.gateway.manager.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.common.cps.dao.bt.CpsBtContractInfoQueryDAO;
import com.gopay.common.domain.cps.vo.BtContractInfoBean;
import com.gopay.common.domain.pg.PgBtQueryTransDtl;
import com.gopay.common.gateway.dao.PgBlocktradeQueryTransDtlQueryDAO;
import com.gopay.common.gateway.manager.PgBTQueryTransDtlQueryManager;

/**
 * 网关大宗通用查询交易Manager
 * 
 * @PgBTQueryTransDtlQueryManagerImpl.java
 * @author GongZhong
 * @2013-1-7 下午07:02:00 www.gopay.com.cn Inc.All rights reserved.
 */
@Service("pgBTQueryTransDtlQueryManager")
public class PgBTQueryTransDtlQueryManagerImpl implements PgBTQueryTransDtlQueryManager {

    @Resource(name = "pgBlocktradeQueryTransDtlQueryDAO")
    private PgBlocktradeQueryTransDtlQueryDAO pgBlocktradeQueryTransDtlQueryDAO;

    @Resource(name = "cpsBtContractInfoQueryDAO")
    private CpsBtContractInfoQueryDAO cpsBtContractInfoQueryDAO;

    @Override
    public PgBtQueryTransDtl get(Serializable id) {
        return this.pgBlocktradeQueryTransDtlQueryDAO.find(PgBtQueryTransDtl.class, id);
    }

    @Override
    public List<PgBtQueryTransDtl> get(Map<Object, Object> paraMap) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<PgBtQueryTransDtl> getAll() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<BtContractInfoBean> queryContractInfo(int queryTransDtlSq) {
        PgBtQueryTransDtl d = pgBlocktradeQueryTransDtlQueryDAO.find(PgBtQueryTransDtl.class, queryTransDtlSq);
        return cpsBtContractInfoQueryDAO.queryContractInfo(d);
    }

}
